package com.yowasa.xiuxian.engine.item.zhuangbei;

import com.yowasa.xiuxian.annoations.Item;
import com.yowasa.xiuxian.engine.item.ItemInterface;
import com.yowasa.xiuxian.entity.bo.user.UserBO;
import com.yowasa.xiuxian.entity.enums.ItemTypeEnum;
import com.yowasa.xiuxian.entity.enums.QualityEnum;


@Item(name = "千风之诗", type = ItemTypeEnum.WU_QI, price = 20000)
public class QianFengZhiShi implements ItemInterface {

    private String attrJson = "{" +
            "\"hp\":0," +
            "\"mp\":0," +
            "\"atk\":50," +
            "\"spell\":50," +
            "\"def\":0," +
            "\"res\":0," +
            "\"imm\":0," +
            "\"spd\":200," +
            "\"quality\":0" +
            "}";


    @Override
    public String desc() {
        return "蒙德的千风孕养出的神奇装备，承载着风的轻盈与狂暴。\n提供物攻，法攻，速度。";
    }

    @Override
    public String effect(UserBO userBO) {
        if (!userBO.getUserConfig().getBattleStrategyList().contains("高天之歌")){
            userBO.getUserConfig().getBattleStrategyList().add("高天之歌");
        }
        return "现在可以使用高天之歌了！！！";
    }

    @Override
    public String removeEffect(UserBO userBO) {
        if (userBO.getUserConfig().getBattleStrategyList().contains("高天之歌")){
            userBO.getUserConfig().getBattleStrategyList().remove("高天之歌");
        }
        return "遗忘了高天之歌！！！";
    }


    //血，蓝，     物攻，     法攻，    物抗，    法抗，    免疫，    速度
    //{"hp":603,"chp":603,"mp":97,"cmp":97,"atk":26,"spell":14,"def":38,"res":14,"imm":25,"spd":243}
    public String attr(QualityEnum qualityEnum){
        String attr = getAttr(qualityEnum, attrJson);
        return attr;
    }

}

